Add statistics handling to the Alluxio metastore support#14018
Add statistics handling to the Alluxio metastore support#14018highker merged 1 commit intoprestodb:masterfrom
Conversation
There was a problem hiding this comment.
nit
Table table = getTable(databaseName, tableName).orElseThrow(() -> new TableNotFoundException(new SchemaTableName(databaseName, tableName)));There was a problem hiding this comment.
- spell out
colStatsMap - null assignment is useless
|
@highker comments addressed. Thanks! |
There was a problem hiding this comment.
No need to have this. Use makePartName from MetastoreUtil instead of FileUtils.makePartName
There was a problem hiding this comment.
the formatting is not aligned
columnStats = client.getPartitionColumnStatistics(
table.getDatabaseName(),
table.getTableName(),
partitionBasicStatistics.keySet().stream().collect(toImmutableList()),
dataColumns);There was a problem hiding this comment.
Is alluxio metastore a thrift-based metastore? If not, shall we restructure the util classes so that this class does not depend on ThriftMetastoreUtil? MetastoreUtil might be the right place to host some helpers.
There was a problem hiding this comment.
Move private functions to the end of a class. Move public ones to the beginning.
22684d1 to
819acc4
Compare
There was a problem hiding this comment.
Same, it's better not to depend on thrift utils for non-thrift metastore.
Co-authored-by: David Zhu <david@alluxio.com>
Co-authored-by: David Zhu david@alluxio.com
Please make sure your submission complies with our Development, Formatting, and Commit Message guidelines.
Fill in the release notes towards the bottom of the PR description.
See Release Notes Guidelines for details.